package com.woniuxy.company5.service.impl;

import com.woniuxy.company5.dto.UserCompanyDto;
import com.woniuxy.company5.entity.UserCompany;
import com.woniuxy.company5.mapper.UserCompanyMapper;
import com.woniuxy.company5.service.UserCompanyService;
import com.woniuxy.company5.vo.UserCompanyVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserCompanyServiceImpl implements UserCompanyService {
    @Resource
    private UserCompanyMapper userCompanyMapper;
    @Override
    public List<UserCompanyVo> selectByLike(UserCompanyDto userCompanyDto) {
        return userCompanyMapper.selectByLike(userCompanyDto);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return userCompanyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserCompany record) {
        return 0;
    }

    @Override
    public int insertSelective(UserCompany record) {
        return userCompanyMapper.insertSelective(record);
    }

    @Override
    public UserCompany selectByPrimaryKey(Long id) {
        return userCompanyMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UserCompany record) {
        return userCompanyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserCompany record) {
        return 0;
    }
}
